package test;

import com.spring.core.annotation.Autowired;
import com.spring.core.annotation.Component;

@Component
public class ComponentB {
    @Autowired
    private ComponentA componentA;

    public ComponentB() {
        System.out.println("ComponentB执行构造方法");
    }

    public void doSomething() {
        System.out.println("B的方法");
    }
}
